package cn.tedu.homework;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class diTest {
    @Test
    public void di(){
        ApplicationContext context = new ClassPathXmlApplicationContext("dean-homework.xml");
        di di = (di) context.getBean("di", di.class);
        System.out.println("di="+di);
    }
    @Test
    public void diHome(){
        ApplicationContext context = new ClassPathXmlApplicationContext("dean-homework.xml");
        di di = (di) context.getBean("diHome", cn.tedu.homework.di.class);
        System.out.println("di="+di);
    }
}
